home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Communications / IBTip / Source / Source.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-12  |  615 b   |  25 lines

  1. #import <objc/Object.h>
  2.  
  3. /* the Source class is used to be an alternate source of input
  4.   for tip3 escape functions.  Thus, the arguments to some command
  5.   in a script file are used to create a Source instance, which is
  6.   passed to the Escaper method */
  7.  
  8. @interface Source:Object
  9. {
  10.   char **lines;
  11.   int nlines;
  12.   int lp;      // current line pointer
  13. }
  14.  
  15. + newStrings:(char **)s;
  16.  
  17. - (int)getchar;
  18. - (int)getcharWithPrompt:(char *)prompt;
  19. - (int)getline:(char *)string size:(int)max;
  20. - (int)getline:(char *)string size:(int)max WithPrompt:(char *)prompt;
  21. - putString:(char *)string; // no op for Source
  22. - free;
  23.  
  24. @end
  25.